package com.kurumi.bo;
public class PageParam {
	private Integer pageNum = 1;// 当前显示的页码
	private Integer pageSize = 10;// 当前设定每页显示的数据个数

	private Integer page;// 当前显示的页码
	private Integer limit;// 当前设定每页显示的数据个数

	private Integer recPerPage;// 当前设定每页显示的数据个数
	private String search;// 当前用于检索数据的文本
	private String sortBy;// 当前排序依据的列名
	private String order;// 当前排序的顺序，包括顺序（'asc'）和倒序（'desc'）

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getPage() {
		if(page == null){
			page = 0;
		}
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getLimit() {
		if(limit == null){
			limit = 0;
		}
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public Integer getRecPerPage() {
		return recPerPage;
	}

	public void setRecPerPage(Integer recPerPage) {
		this.recPerPage = recPerPage;
	}

	public String getSearch() {
		return search;
	}

	public void setSearch(String search) {
		this.search = search;
	}

	public String getSortBy() {
		return sortBy;
	}

	public void setSortBy(String sortBy) {
		this.sortBy = sortBy;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	@Override
	public String toString() {
		return "PageParam{" +
				"pageNum=" + pageNum +
				", pageSize=" + pageSize +
				'}';
	}
}
